package com.wn.date20190808;

/**
 * 测试vehicle,和汽车
 * @author song
 *
 */
public class VehicleTest
{

	public static void main(String[] args)
	{
		new Vehicle("benz", "green").run();
		new Car("Honda", "red", 80, 2).run();
		// 多态
		Vehicle car1=new Car("Toyoya", "Black", 60, 4);
		car1.run();
	}

}
